<template>
  <div class="wrap">
    <router-view></router-view>

    <div class="footer">
      <router-link class="item" to="/index/home">首页</router-link>
      <router-link class="item" to="/index/shopCar">购物车</router-link>
      <router-link class="item" to="/index/cate">分类</router-link>
      <router-link class="item" to="/index/mine">我的</router-link>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style scoped>
.footer {
  width: 100%;
  height: 0.8rem;
  position: fixed;
  bottom: 0;
  left: 0;
  display: flex;
  background: white;
  font-size: 0.4rem;
  line-height: 0.8rem;
  text-align: center;
  
}
.item {
  flex: 1;
  color: black;
}
.router-link-active{
  color: tomato;
}
</style>